<!DOCTYPE html>
<html>
<body><script>
window.onload = function() {
  var a = document.createTextNode("a ");
  var b = document.createElement("input");
  var c = document.createTextNode(" c");
  document.body.appendChild(a);
  document.body.appendChild(c);
  document.body.offsetWidth;
  document.body.insertBefore(b, c);
}
</script>
</body>
</html>
